package com.chinamobile.iot.handler.model;

import com.chinamobile.iot.mqtt.spi.model.StoredMessage;

/**
 *
 * this class description the data structure of subscription message
 *
 * Created by szl on 2017/8/2.
 */

public class SubMessageData {
    /**
     * 订阅匹配的数据
     */
    private StoredMessage msg;
    /**
     * 订阅匹配的filter
     */
    private String filter;

    public SubMessageData(StoredMessage msg, String filter) {
        this.msg = msg;
        this.filter = filter;
    }

    public SubMessageData() {
    }

    public StoredMessage getMsg() {
        return msg;
    }

    public void setMsg(StoredMessage msg) {
        this.msg = msg;
    }

    public String getFilter() {
        return filter;
    }

    public void setFilter(String filter) {
        this.filter = filter;
    }
}
